package cn.ren.cloud.feign;

import cn.ren.cloud.fallback.MediaFeignClientFallbackFactory;
import cn.ren.cloud.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author 23508
 */
@FeignClient(value = "service-media", fallbackFactory = MediaFeignClientFallbackFactory.class)
public interface MediaFeignClient {

    /**
     * feign接口调用
     *
     * @param courseId
     * @return
     */
    @RequestMapping(value = "/mediaFile/list/{courseId}", method = RequestMethod.GET)
    JsonResult getMediaFileByCourseId(@PathVariable("courseId") Long courseId);
}
